package shouhin;

public class ShouhinBeans {

	private int syouhin_id;
	private String syouhinmei;
	private String setumei;
	private String img_url;
	private String imgs_url;
	private int nedan;
	private int zaiko;
	//カート用変数
	private int kosuu;
	private int syoukei;

	public ShouhinBeans(){
		syouhin_id = 0;
		syouhinmei = "";
		setumei = "";
		img_url = "";
		imgs_url = "";
		nedan = 0;
		zaiko = 0;
		kosuu = 0;
		syoukei = 0;
	}

	public int getSyouhin_id() {
		return syouhin_id;
	}
	public void setSyouhin_id(int syouhin_id) {
		this.syouhin_id = syouhin_id;
	}
	public String getSyouhinmei() {
		return syouhinmei;
	}
	public void setSyouhinmei(String syouhinmei) {
		this.syouhinmei = syouhinmei;
	}
	public String getSetumei() {
		return setumei;
	}
	public void setSetumei(String setimei) {
		this.setumei = setimei;
	}
	public String getImg_url() {
		return img_url;
	}
	public void setImg_url(String img_url) {
		this.img_url = img_url;
	}
	public String getImgs_url() {
		return imgs_url;
	}
	public void setImgs_url(String imgs_url) {
		this.imgs_url = imgs_url;
	}
	public int getNedan() {
		return nedan;
	}
	public void setNedan(int nedan) {
		this.nedan = nedan;
	}
	public int getZaiko() {
		return zaiko;
	}
	public void setZaiko(int zaiko) {
		this.zaiko = zaiko;
	}
	public int getKosuu() {
		return kosuu;
	}
	public void setKosuu(int kosuu) {
		this.kosuu = kosuu;
		this.syoukei = this.nedan * this.kosuu;
	}
	public int getSyoukei() {
		return syoukei;
	}

	public void setSyoukei(int syoukei) {
		this.syoukei = syoukei;
	}
}
